.class public Les/vn;
.super Ljava/lang/Object;
.source "FolderScanTask.java"


# instance fields
.field a:Ljava/lang/String;

.field b:I

.field c:Z


# direct methods
.method public constructor <init>(Ljava/lang/String;I)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, -0x1

    .line 2
    iput v0, p0, Les/vn;->b:I

    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p0, Les/vn;->c:Z

    .line 4
    iput-object p1, p0, Les/vn;->a:Ljava/lang/String;

    .line 5
    iput p2, p0, Les/vn;->b:I

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;IZ)V
    .locals 1

    .line 6
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, -0x1

    .line 7
    iput v0, p0, Les/vn;->b:I

    const/4 v0, 0x1

    .line 8
    iput-boolean v0, p0, Les/vn;->c:Z

    .line 9
    iput-object p1, p0, Les/vn;->a:Ljava/lang/String;

    .line 10
    iput p2, p0, Les/vn;->b:I

    .line 11
    iput-boolean p3, p0, Les/vn;->c:Z

    return-void
.end method


# virtual methods
.method public a(Ljava/io/File;Ljava/util/HashMap;J)V
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/io/File;",
            "Ljava/util/HashMap<",
            "Ljava/lang/Long;",
            "Lcom/estrongs/fs/g;",
            ">;J)V"
        }
    .end annotation

    .line 4
    invoke-virtual {p1}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object p1

    if-nez p1, :cond_0

    return-void

    .line 5
    :cond_0
    array-length v0, p1

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_0
    if-ge v1, v0, :cond_6

    aget-object v3, p1, v1

    .line 6
    invoke-virtual {v3}, Ljava/io/File;->isDirectory()Z

    move-result v4

    if-eqz v4, :cond_2

    .line 7
    iget-boolean v4, p0, Les/vn;->c:Z

    if-eqz v4, :cond_5

    if-nez v2, :cond_1

    .line 8
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 9
    :cond_1
    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 10
    :cond_2
    invoke-virtual {v3}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v4

    const-string v5, "."

    invoke-virtual {v4, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_3

    goto :goto_1

    .line 11
    :cond_3
    invoke-virtual {v3}, Ljava/io/File;->lastModified()J

    move-result-wide v4

    const-wide/16 v6, 0x3e8

    div-long/2addr v4, v6

    cmp-long v6, v4, p3

    if-gez v6, :cond_4

    goto :goto_1

    .line 12
    :cond_4
    new-instance v4, Lcom/estrongs/fs/impl/local/d;

    invoke-direct {v4, v3}, Lcom/estrongs/fs/impl/local/d;-><init>(Ljava/io/File;)V

    .line 13
    iget v3, p0, Les/vn;->b:I

    invoke-interface {v4, v3}, Lcom/estrongs/fs/g;->b(I)V

    .line 14
    invoke-interface {v4}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->hashCode()I

    move-result v3

    int-to-long v5, v3

    .line 15
    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-virtual {p2, v3}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_5

    .line 16
    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-virtual {p2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_5
    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_6
    if-eqz v2, :cond_7

    .line 17
    invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_2
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_7

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/io/File;

    .line 18
    invoke-virtual {p0, v0, p2, p3, p4}, Les/vn;->a(Ljava/io/File;Ljava/util/HashMap;J)V

    goto :goto_2

    :cond_7
    return-void
.end method

.method public a(Ljava/util/HashMap;J)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/HashMap<",
            "Ljava/lang/Long;",
            "Lcom/estrongs/fs/g;",
            ">;J)V"
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Les/vn;->a:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 2
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Ljava/io/File;->isDirectory()Z

    move-result v1

    if-nez v1, :cond_0

    goto :goto_0

    .line 3
    :cond_0
    invoke-virtual {p0, v0, p1, p2, p3}, Les/vn;->a(Ljava/io/File;Ljava/util/HashMap;J)V

    :cond_1
    :goto_0
    return-void
.end method
